import request from '@/utils/request'
import formurlencoded from 'form-urlencoded'

//产品评价列表初始化信息
export function fetchProductComments(query) {
  return request({
    url: '/admin/member/productcomments',
    method: 'get',
    params: query
  })
}

//产品评价列表
export function fetchProductCommentsList(query) {
  return request({
    url: '/admin/member/productcomments/list',
    method: 'get',
    params: query
  })
}

//审核商品评价-通过
export function passProductComments(query) {
  return request({
    url: '/admin/member/productcomments/pass',
    method: 'get',
    params: query
  })
}

//审核商品评价-不通过
export function rejectProductComments(query) {
  return request({
    url: '/admin/member/productcomments/reject',
    method: 'get',
    params: query
  })
}

//产品咨询列表初始化信息
export function fetchProductAsk(query) {
  return request({
    url: '/admin/member/productask',
    method: 'get',
    params: query
  })
}

//产品咨询列表
export function fetchProductAskList(query) {
  return request({
    url: '/admin/member/productask/list',
    method: 'get',
    params: query
  })
}

//审核咨询评价-通过
export function passProductAsk(query) {
  return request({
    url: '/admin/member/productask/pass',
    method: 'get',
    params: query
  })
}

//审核咨询评价-不通过
export function rejectProductAsk(query) {
  return request({
    url: '/admin/member/productask/reject',
    method: 'get',
    params: query
  })
}
